const path = require('path');
/**
 * @description 是否有环境变量‘NODE_ENV’
 * @return {boolean}
 */
exports.hasEnvironment = () => process.env.NODE_ENV !== undefined;

/**
 * @description 文件解析
 * @param name {string}
 * @return {`${string}\\${string}`}
 */
exports.requireResolve = name => `${path.resolve(__dirname, '..')}\\${name}`;
